package cn.kk.springboot01.demo.service.impl;
/*
 *@author KK on 2022.10.09 17:20
 */

import cn.kk.springboot01.demo.entity.Emp;
import cn.kk.springboot01.demo.mapper.EmpMapper;
import cn.kk.springboot01.demo.service.EmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpMapper empMapper;

    @Override
    public List<Emp> getAll() {
        return empMapper.getAll();
    }

    @Override
    public Emp getEmpByname(String name) {
        return empMapper.getEmpByName(name);
    }

    @Override
    public int delEmp(Integer eno) {
        return empMapper.delEmp(eno);
    }
}
